package ru.inp.test.swt;

import org.eclipse.swt.graphics.GC;
import org.eclipse.swt.widgets.Display;
import org.eclipse.swt.widgets.Shell;

public class Starter {

	public static void main(String[] args) {
		Display display = new Display();
		Shell shell = new Shell(display);
		shell.open();
		
		GC gc = new GC(shell);
		
		LineDrawer ld = new LineDrawer();
		ld.setGC(gc);
		ld.start();
		
		
		
		while (!shell.isDisposed()){
			if (!display.isDisposed() && !display.readAndDispatch()) {
                display.sleep();
            }			
		}
		shell.dispose();
    }

}
